import { createSSRApp } from "vue";
import App from "./App.vue";
import * as Pinia from 'pinia';
import persistedstate from 'pinia-plugin-persistedstate'
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn'
dayjs.locale('zh-cn');

const pinia = Pinia.createPinia()
pinia.use(persistedstate)

export function createApp() {
  const app = createSSRApp(App);
  app.use(pinia);
  return {
    app,
    pinia
  };
}

